package tr.edu.yildiz.ce.app_manager.ui.action.menu;

import java.util.List;

import com.vaadin.data.Property;
import com.vaadin.data.Property.ConversionException;
import com.vaadin.data.Property.ReadOnlyException;
import com.vaadin.data.Property.ValueChangeEvent;
import com.vaadin.event.ItemClickEvent;
import com.vaadin.event.ItemClickEvent.ItemClickListener;
import com.vaadin.ui.Table;

import tr.edu.yildiz.ce.app_manager.model.AppProxy;
import tr.edu.yildiz.ce.app_manager.ui.AppManagerApplication;
import tr.edu.yildiz.ce.app_manager.ui.action.table.ProxyTableSelectAction;
import tr.edu.yildiz.ce.app_manager.ui.components.form.ProxyForm;
import tr.edu.yildiz.ce.app_manager.ui.components.table.ProxyTableForm;

public class ProxyAction extends MenuAction {

	public ProxyAction(AppManagerApplication app) {
		super(app);
	}

	@Override
	public void doAction() {
		final ProxyForm proxyForm = new ProxyForm(new AppProxy(),app);
		app.getMainLayout().setForm(proxyForm);
		ProxyTableForm ptForm = new ProxyTableForm(app);
		app.getMainLayout().setTable(ptForm);
	}

}
